{% for c2 in c.children %}
<li class="sidenav-item">
    <a href="javascript:void(0)" class="sidenav-link sidenav-toggle"><i
            class="sidenav-icon ion ion-ios-folder-open"></i>
        <div>{{c2.name}}</div>
    </a>

    <ul class="sidenav-menu">
        {% for p3 in c2.posts %}
        <li class="sidenav-item">
            <a href="{{ p3.url }}" class="sidenav-link">
                <i class="sidenav-icon ion ion-md-document"></i>
                <div>{{ p3.title }}</div>
            </a>
        </li>
        {% /for %}
    </ul>

</li>
{% /for %}